View {
  box-sizing: border-box;
}

.box-index {
  width: 100vw;
	// height:100vh;
  height:90vh;
  background-repeat: repeat-y;
  background-attachment: fixed;
  background-position: center;
}
.alipay-box-index{
	height:100vh;
}

.paddingTop50 {
  padding-top: 50px;
}
.swiper-item{
	height: 100%;
	overflow-y: auto;
}
.search-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto;
  width: 702px;
  height: 60px;
  box-sizing: border-box;
  background: #f5f5f5;
  border-radius: 80px;

  .text {
    position: relative;
    padding-left: 44px;
    display: inline-flex;
    opacity: 0.6;
    color: #fff;
    font-size: 26px;

    &::before {
      position: absolute;
      left: 0;
      top: 50%;
      margin-top: -15px;
      content: "";
      background-size: contain;
      width: 28px;
      height: 30px;
    }
  }
}
.classification {
  background: #f5f5f5;
}

.goods-menu {
  margin-bottom: 20px;
  height: 88px;
  padding: 0 24px;
}

.fixed {
  width: 100%;
  position: fixed;
  // top: 180px;
  left: 0;
  background-color: #fff;
  // padding: 0 24px;
  box-sizing: border-box;
  z-index: 6;
  .preview {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: #ff3b30;
    color: #ffffff;
  }
}

.menu {
  display: flex;
  width: 100%;
  height: 88px;
  overflow-x: auto;
  transition: background-color 0.5s ease;

  .child-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 175px;
    height: 100%;
    flex: 0 0 auto;

    .text {
      position: relative;
      font-size: 28px;
      color: #999;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
      padding: 10px 2px;
      box-sizing: border-box;

      &::after {
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translate3d(-50%, 0, 0);
        width: 100%;
        height: 4px;
        background: rgba(18, 179, 255, 1);
        border-radius: 2px;
        content: "";
        padding: 0 10px;
        display: none;
      }
    }

    &.curr .text {
      color: #12b3ff;

      &::after {
        display: block;
      }
    }
  }
}

.goods-content {
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;

  .goods-list {
    position: relative;
    width: 340px;
    border-radius: 12px;
    height: 504px;
    background-color: #fff;
    margin-bottom: 20px;
    overflow: hidden;

    &:nth-child(even) {
      margin-left: 20px;
    }

    .service-goods-pic {
      width: 341px;
      height: 504px;
      display: block;
      margin: 0 auto;
    }

    .goods-pic {
      width: 341px;
      height: 346px;
      display: block;
      margin: 0 auto 20px;
    }

    .name {
      width: 100%;
      padding: 0 20px;
      font-size: 26px;
      height: 75px;
      font-family: PingFang SC;
      font-weight: 500;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      text-overflow: ellipsis;
      overflow: hidden;
      box-sizing: border-box;
      // white-space: nowrap;
    }

    .price-info {
      position: absolute;
      bottom: 20px;
      left: 0;
      right: 0;
      display: flex;
      padding-top: 6px;
      justify-content: space-between;
      align-items: center;
      padding: 0 24px;

      .price {
        color: #ff3b30;
        font-size: 32px;

        &::before {
          content: "￥";
          font-size: 20px;
        }

        &::after {
          content: "起";
          font-size: 20px;
          margin-left: 8px;
          color: #666666;
        }
      }
      .cart-img {
        width: 44px;
        height: 44px;
      }
    }
  }

  &-bottom {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #cccccc;
    margin-top: 30px;
  }
}
